package com.kk.crowd.session.handler;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@RestController
public class HelloHandler {

    @RequestMapping("test/spring/session")
    public String testSetSession(HttpSession session){
        session.setAttribute ("king","hi ! king");
        return "数据已经存入";
    }
}
